Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

215
Vistas
My HTML input field is "readonly" by default since the last chrome update

Several users of my website came to explain to me that it was no longer possible to click on the checkboxes or to click on the "add a file" button (input type file)

I failed to reproduce the problem until I updated Google chrome to version 92.0.4515.107

And I could see that one of my CSS class override the default parameters because Google chrome considers my inputs as read only inputs

https://jsfiddle.net/Lfjctwb1/

Example :

<div class="form-check">
  <input class="form-check-input" type="checkbox" id="confirm-checkbox" required="">
  <label class="form-check-label" for="confirm-checkbox">
    <strong>I confirm</strong>
  </label>
</div>

<br>
<br> 

<input type="file" name="my_file" required />

My CSS class that override :

.disabled, input:read-only {
    pointer-events: none;
}

How to modify my class without having to modify all my inputs ?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

This works as expected per spec and won't be fixed.

https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly https://html.spec.whatwg.org/multipage/semantics-other.html#selector-read-only

More information: https://bugs.chromium.org/p/chromium/issues/detail?id=1259187

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda